package com.southwind.repository;

import com.southwind.entity.Order;

import java.util.List;

public interface OrderRepository {
    void save(Order order);

    List<Order> findByUid(Integer index, Integer limit, Integer uid);

    Integer countByUid(Integer uid);

    List<Order> findAllByState(Integer index, Integer limit);

    void updateState(Integer oid);

    Integer count();
}
